-
Notifications
You must be signed in to change notification settings - Fork 342
Conversation
…ly use /all param if on win 8 or server 2012
Now this is awesome! With tests, that's a plus 1000. :D |
this approach is actually really clever. Several questions - Do we need a "windowsfeatures" added to chocolatey-uninstall? Can multiple features be specified on the same line? I know the dism /online /enable-feature can take an unlimited number of /featurename: switches. LOVE THIS PR! Aside: |
I think adding a uninstall for these makes sense. I'll add that. I do think that adding multiple features would be handy and should be faster since fewer round trips would be incurred. I didn't add it since it did not seem to mesh with the current chocolatey model of having a single package for each cinst. However, rather than making a special case for this feed, what would you think of adding the ability for any chocolatey feed (or atleast this one and chocolatey nuget) to accept an array of packages. That might be a nice overall enhancement. The challenge is that the normal CommandLine does not have an understanding of arrays but we might be able to change the .bat file generator to convert comma delimited arguments to arrays. |
I think all should do that. It aligns well with other package managers. Just haven't yet gotten to that one. |
Took a look at adding uninstall. While it looks pretty trivial for this feed. It seems like the current codebase is in need of a more pluggable pattern. Right now, each feed have dedicated scripts for install, webpi and winfeatures have inline conditionals for lists and uninstall only supports nuget. I'd propose that each feed have their own dedicated script(s) for all functions and the Chocolatey-XXX function becomes a factory or just provides obviously common logic. There are a number of patterns that can be implemented. One suggestion:
This is very rough and hardly baked but you get the idea. I'll post this on the forum and push this feed as is. Then we can create issues for plugins if we think this makes sense and also add another issue for supporting multiple packages. |
Commenting on the chocolatey google group - Rob http://devlicio.us/blogs/rob_reynolds On Thu, Sep 13, 2012 at 10:54 AM, Matt Wrock [email protected]:
|
This adds the Deployment Image Servicing and Management tool as a chocolatey feed. This is the list of Windows Features that can be installed under "Add Windows Features" in Windows or via the DISM command line or the ServerAdministration powershell module available on windows server OSs.
Example:
cinst TelnetClient -source windowsfeatures
clist -windowsfeatures
produces:
----------------------------------------------------- | --------